<?php 
define('Copyright', 'Author QQ: 765858558');
define('ROOT_PATH', $_SERVER["DOCUMENT_ROOT"].'/');
include_once ROOT_PATH.'Admin/ExistUser.php';
include_once ROOT_PATH.'Admin/config/AdminConfig.php';
global $ConfigModel,$Users;
$pageNum = 50;
	$db = new DB();
	$page = new Page($total, $pageNum);
if ($Users[0]['g_login_id'] != 89) exit;

if (isset($Users[0]['g_lock_1_1'])){
	if ($Users[0]['g_lock_1_1'] !=1) 
		exit(back('您的權限不足！'));
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php echo $oncontextmenu?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/js/actiontop.js"></script>
<script type="text/javascript" src="/js/jquery.js"></script>
<link href="/Admin/temp/css/common.css" rel="stylesheet" type="text/css" />
<title></title>
<script type="text/javascript">
<!--
	function isForm(){
		if (confirm("確認更變嗎？"))
				return true;
		return false;
	}
	function delgaidan($this){
	var psCode = $("#psCode").val();
	var name = $("#name").val();
	var sid = $("#sid").val();
	if (confirm("此操作不可逆，刪除請慎重。確定嗎？")){
		location.href = "/functioned/Delgaidan.php?uid="+name+"&sid="+sid+"&code="+psCode;
	}
}
	function locationFile1(name,sid){
	$("#name").val(name);
	$("#sid").val(sid);
	var oddsPop = $("#oddsPops");
	var offsetTop = event.y; 
	var offsetLeft = event.x-135; 
	$("#oddsPops").slideDown(200).css({top : offsetTop, left : offsetLeft, "display" : ""});
}

function closesPop(){
	$("#oddsPops").slideToggle(200);
	$("#isSubmit").attr("disabled","");
	$("#showPas").html('&nbsp;請輸入安全碼：<input class="textc" id="psCode" type="password" /><input type="hidden" name="name" id="name" value=""/><input type="hidden" name="sid" id="sid" value=""/>').css("color","");
}
-->
</script>
</head>
<body>
	<table width="100%" height="100%" border="0" cellspacing="0" class="a">
    	<tr>
        	<td width="5" height="100%" bgcolor="#4F4F4F"></td>
            <td class="c">
            	<table border="0" cellspacing="0" class="main">
                	<tr>
                    	<td width="12"><img src="/Admin/temp/images/tab_03.gif" alt="" /></td>
                        <td background="/Admin/temp/images/tab_05.gif">
                        	<table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="17"><img src="/Admin/temp/images/tb.gif" width="16" height="16" /></td>
                                    <td>&nbsp;注单校验</td>
                                  </tr>
                            </table>
                        </td>
                        <td width="16"><img src="/Admin/temp/images/tab_07.gif" alt="" /></td>
                    </tr>
                    <tr>
                    	<td class="t"></td>
                        <td class="c">
                        <!-- strat -->
                            <table border="0" cellspacing="0" class="conter">
                            <tr style="height:30px">
                                <td width="95" align="center" bgcolor="#F5FED3">会员</td>
                                  <td align="center" bgcolor="#F5FED3">下注时间</td>
                                  <td align="center" bgcolor="#F5FED3">类型</td>
                                  <td align="center" bgcolor="#F5FED3">期数</td>
                                  <td align="center" bgcolor="#F5FED3">金额</td>
                                  <td align="center" bgcolor="#F5FED3">赔率</td>
                                  <td align="center" bgcolor="#F5FED3">明细1</td>
                                  <td align="center" bgcolor="#F5FED3">明细2</td>
                                  <td align="center" bgcolor="#F5FED3">原始值</td>
								  <td align="center" bgcolor="#F5FED3">操作</td>
                            </tr>
                              <?php
							 $now2=date("Y-m-d",strtotime("-7 day"));
							 $now3=$now2." 00:00";
							 $result = mysql_query("select g_nid,g_date,g_type,g_qishu,g_jiner,g_odds,g_mingxi_1,g_mingxi_2,mxmd,mxsha1 from g_zhudan    order by g_id desc"); while($rs = mysql_fetch_array($result)){
							 $checkout=md5($rs['g_type']."@".$rs['g_mingxi_1']."@".$rs['g_mingxi_2']."$".$rs['g_jiner']);
							 if ($checkout!=$rs['mxsha1']){							  
							 ?>
                                 <tr style="height:28px">
                                  <td align="center" ><?php echo $rs['g_nid'];?></td>
                                  <td align="center" ><?php echo $rs['g_date'];?></td>
                                  <td align="center" ><?php echo $rs['g_type'];?></td>
                                  <td align="center" ><?php echo $rs['g_qishu'];?></td>
                                  <td align="center" ><?php echo $rs['g_jiner'];?></td>
                                  <td align="center" ><?php echo $rs['g_odds'];?></td>
                                  <td align="center" ><?php echo $rs['g_mingxi_1'];?></td>
                                  <td align="center" ><?php echo $rs['g_mingxi_2'];?></td>
                                  <td align="center" ><?php echo $rs['mxmd'];?></td>
								  <td align="center" ><a href="javascript:void(0)" onclick="locationFile1('<?php echo $rs['mxsha1']?>','2')">刪除</a></td>
                                 </tr>
                          <?php }}?> 
            </table>
            
            <!-- end --></td>
          <td class="r"></td>
        </tr>
        <tr>
          <td width="12"><img src="/Admin/temp/images/tab_18.gif" alt="" /></td>
          <td class="f" align="right"><?php $p = $page->diy_page()?>
            <table width='100%' height='22' border='0' cellspacing='0' cellpadding='0' class="page_box">
              <tr>
                <td align='left'>&nbsp;共&nbsp;<?php echo $p[0];?>&nbsp;條記錄</td>
                <td align='center'>共&nbsp;<?php echo $p[2];?>&nbsp;頁</td>
                <td align='right'>&nbsp;<?php echo $p[4];?>『<?php echo $p[5];?>』<?php echo $p[6];?></td>
              </tr>
            </table></td>
          <td width="16"><img src="/Admin/temp/images/tab_20.gif" alt="" /></td>
        </tr>
      </table>
    <td width="5" bgcolor="#4F4F4F"></td>
		</td>
        </tr>
        <tr>
        	<td height="5" bgcolor="#4F4F4F"></td>
            <td bgcolor="#4F4F4F"></td>
            <td height="5" bgcolor="#4F4F4F"></td>
        </tr>
    </table>
</form>
<div id="oddsPops" style="position:absolute;width:190px;display:none">
<table border="0" cellspacing="0" class="t_odds" width="100%">
	<tr class="tr_top">
    	<th>安全驗證</th>
    </tr>
    <tr class="text" style="height:35px;text-align:center">
        <td id="showPas">&nbsp;請輸入安全碼：<input class="textc" id="psCode" type="password" />
		<input type="hidden" name="name" id="name" value=""/>
		<input type="hidden" name="sid" id="sid" value=""/>
		</td>
    </tr>
    <tr class="texts">
        <td align="center" height="60" colspan="2">
            <input type="button" class="inputa" id="isSubmit" onclick="delgaidan(this)" value="確認" />&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="button" class="inputa" onclick="closesPop()" value="取消" />
      	</td>
    </tr>
</table>
</div>
</body>
</html>